﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TimeAxis.Models
{
    /// <summary>
    /// 问题
    /// </summary>
    public class Doc
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Id { get; set; }


        /// <summary>
        /// 问题内容
        /// </summary>
        public string Content { get; set; }


        /// <summary>
        /// 问题标题
        /// </summary>
        public string Title { get; set; }


        /// <summary>
        /// 提出时间
        /// </summary>
        public DateTime Pdate { get; set; }


        /// <summary>
        /// 赞次数
        /// </summary>
        public int GoodCount { get; set; }


        /// <summary>
        /// 发布者
        /// </summary>
        public int UsersId { get; set; }

        /// <summary>
        /// 相关发布者
        /// </summary>
        public virtual Users Users { get; set; }

        public Doc()
        {
            this.Id = int.MinValue;
            this.GoodCount = int.MinValue;
            this.UsersId = int.MinValue;
        }
    }
}
